FROM java:8
MAINTAINER lifuping 1259452237@qq.com

#创建容器操作目录
RUN mkdir -p /opt/jenkins/

#复制宿主机文件到docker容器里
COPY startup.sh  /opt/jenkins/
COPY Test-Jenkins-s-1.0-SNAPSHOT.jar  /opt/jenkins/

# 指定当前操作目录
WORKDIR /opt/jenkins/

#赋予启动脚本执行权限
RUN  chmod a+x  /opt/jenkins/startup.sh

# 运行脚本
CMD /opt/jenkins/startup.sh
